﻿using System;

namespace ebcpatterns.flow
{
    public interface IJoin<TInput1, TInput2, TOutput>
    {
        event Action<TOutput> Output;

        void Input1(TInput1 message);

        void Input2(TInput2 message);
    }


    public interface IJoin<TInput1, TInput2>
    {
        event Action<Tuple<TInput1, TInput2>> Output;

        void Input1(TInput1 message);

        void Input2(TInput2 message);
    }
}